package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_order")
public class Order implements Serializable {
    /**
     * 抢单id
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 抢单时间
     */
    @TableField(value = "order_time")
    private Date orderTime;

    /**
     * 抢单金额
     */
    @TableField(value = "order_price")
    private BigDecimal orderPrice;

    /**
     * 期数
     */
    @TableField(value = "order_time_number")
    private Integer orderTimeNumber;

    /**
     * 最后还款时间
     */
    @TableField(value = "repay_time")
    private Date repayTime;

    /**
     * 已还本金
     */
    @TableField(value = "repaid_price")
    private BigDecimal repaidPrice;

    /**
     * 未还本金
     */
    @TableField(value = "outst_price")
    private BigDecimal outstPrice;

    /**
     * 利息
     */
    @TableField(value = "interest")
    private BigDecimal interest;

    /**
     * 手续费
     */
    @TableField(value = "hand_fee")
    private BigDecimal handFee;

    /**
     * 放款机构
     */
    @TableField(value = "loan_record")
    private String loanRecord;

    /**
     * 状态
     */
    @TableField(value = "order_status")
    private Integer orderStatus;

    private static final long serialVersionUID = 1L;
}